﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
//系统内置Action委托  不能带返回值
public class SystemAction : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        Action action1 = Show1;
        action1();

        Action<int,int> action2 = Show2;
        action2(1, 2);
    }
    void Show1()
    {
        Debug.Log("Show1");
    }
    void Show2(int arg1,int arg2)
    {
        Debug.Log("Show2:"+(arg1+arg2));
    }
    // Update is called once per frame
    void Update()
    {
        
    }
}
